<!-- <!DOCTYPE html>
<html>
  <head>
    <title><%= title %></title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
  </head>
  <body>
    <h1><%= title %></h1>
    <p>Welcome to <%= title %></p>
  </body>
</html> -->
<section class="product">
  <h2>产品展示</h2><a href="#">更多产品</a>
  <ul>
    <%
    // 将路由中传递过来的数据解析并显示在页面中
    for(var i=0;i<products.length;i++) {
    %>
      <li>
        <a href="#">
          <IMG src="/<%= products[i].image %>" alt="" />
          <P>
            <%= products[i].name %></br>
            <span>价格: %<%= products[i].price %>元</span>
          </p>
        </a>
      </li>
    <%
    }
    %>
  </ul>
</section>